// KeyControl.h: interface for the CKeyControl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_KEYCONTROL_H__D51D6ADB_87D8_48D4_83F4_0D188F1D6E83__INCLUDED_)
#define AFX_KEYCONTROL_H__D51D6ADB_87D8_48D4_83F4_0D188F1D6E83__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CKeyControl  
{
public:
	BYTE KeyState[500];

	CKeyControl();
	virtual ~CKeyControl();

	void ClearBuffer();
	void OnKeyDown(UINT nChar);
	void OnKeyUp(UINT nChar);

	// static member function
	static BOOL CheckKeyDown(int keynum);
};

//BOOL CKeyControl::CheckKeyDown(int keynum);

#endif // !defined(AFX_KEYCONTROL_H__D51D6ADB_87D8_48D4_83F4_0D188F1D6E83__INCLUDED_)
